package com.mask.im.business.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.mask.im.business.model.dto.LoginRecordsDTO;
import com.mask.im.business.model.entity.SysLoginLogEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 用户登录日志
 * @author jian
 */
@Mapper
@Repository
public interface SysLoginLogMapper extends BaseMapper<SysLoginLogEntity> {

	List<LoginRecordsDTO> getUserLoginRecords(@Param("userId") Integer userId);

	Integer selectTodayDataLoginRecords(@Param("userId") Integer userId);
}

